package excp;

class ExTest5{
public static void main(String st[]){
System.out.println("---- In main() -----");
int xy=Operation.getRemainder(21,2);
System.out.println("---- In main() -----:"+xy);
System.out.println("---- main() End-----");
}
}
class Operation{
static int getRemainder(int ab,int bc){
System.out.println("---- getRemainder() method -----");
System.out.println("Values\t:"+ab+"\t"+bc);
int rem=-11;
try{
System.out.println("---- In try Block -----");
rem=ab%bc;
System.out.println("After accessing Remainder\t:"+rem);
return rem;
}
finally{
rem=34;
System.out.println("Finally Block\t:"+rem);
//return 999;
}
}
}